package com.dingding.thirdpartydingding.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zjd
 * @Title:
 * @Description:
 * @date 2021/6/9 14:05
 */
@Component
@ConfigurationProperties(prefix = "dingding")
public class DingDingProperties {

    /**
     * 应用id
     * */
    private static  String agentId;

    /**
     * 应用key
     * */
    private static String appKey;

    /**
     * 应用密钥
     * */
    private static String appSecret;

    /**
     * 企业id
     * */
    private static  String corpId;

    /**
     * 接收事件服务器aesKey
     * */
    private static String aesKey;

    /**
     * 接收事件服务器token
     * */
    private static  String token;

    public  void setAgentId(String agentId) {
        DingDingProperties.agentId = agentId;
    }

    public static String getAppKey() {
        return appKey;
    }

    public  void setAppKey(String appKey) {
        DingDingProperties.appKey = appKey;
    }

    public static String getAppSecret() {
        return appSecret;
    }

    public  void setAppSecret(String appSecret) {
        DingDingProperties.appSecret = appSecret;
    }

    public static String getAesKey() {
        return aesKey;
    }

    public  void setAesKey(String aesKey) {
        DingDingProperties.aesKey = aesKey;
    }

    public static String getAgentId() {
        return agentId;
    }

    public static String getCorpId() {
        return corpId;
    }

    public  void setCorpId(String corpId) {
        DingDingProperties.corpId = corpId;
    }

    public static String getToken() {
        return token;
    }

    public  void setToken(String token) {
        DingDingProperties.token = token;
    }
}
